from rest_framework import serializers
from axf.models import Wheel, MainShow, FoodTypes, Goods


class WheelSerializer(serializers.ModelSerializer):
    class Meta:
        model = Wheel
        fields = ('id', 'img', 'name', 'trackid' ) or '__all__'

class MainShowSerializer(serializers.ModelSerializer):
    class Meta:
        model = MainShow
        fields = ('id', 'trackid', 'name', 'img', 'categoryid', 'brandname', 'img1', 'childcid1','productid1', 'longname1', 'price1', 'marketprice1', 'img2', 'childcid2', 'productid2', 'longname2', 'price2', 'marketprice2', 'img3', 'childcid3', 'productid3', 'longname3', 'price3',
                  'marketprice3')

class FoodTypeSerializer(serializers.ModelSerializer):
    class Meta:
        model = FoodTypes
        fields = '__all__'

class ShopListSerializer(serializers.ModelSerializer):
    class Meta:
        model = Goods
        fields = '__all__'